﻿using LD.Common;
using System;

namespace LD
{
    public class Appbus
    {
        /// <summary>
        /// 根目录
        /// </summary>
        public static string BasePath
        {
            get { return AppDomain.CurrentDomain.BaseDirectory; }
        }
        public static bool Debug
        {
            get
            {
                if (AppSettingHelper.GetConfigValue("DEBUG") == "1")
                    return true;
                else
                    return false;
            }
        }
        public static bool Ccd_Enabled
        {
            get
            {
                if (AppSettingHelper.GetConfigValue("CCD_ENABLED") == "1")
                    return true;
                else
                    return false;
            }
        }
        public static int Screw_Qty
        {
            get
            {
                int.TryParse(AppSettingHelper.GetConfigValue("SCREW_QTY"), out int screwQty);
                return screwQty;
            }
        }
    }
}
